package cn.jinzhu.user.service;

import cn.jinzhu.user.mapper.UserMapper;
import cn.jinzhu.user.pojo.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User queryById(Long id) {
        log.info("【查询用户】id:{}", id);
        return userMapper.findById(id);
    }
}